module.exports = {
  image: {
    type: Array,
    default () {
      return []
    },
    name: '上传图片',
    filedType: 'file',
    limit: 1,
    maxSize: 10240
  },

  bgColor1: {
    type: String,
    default: 'rgba(0, 0, 0, .2)',
    name: '背景色1',
    filedType: 'color'
  },

  bgColor2: {
    type: String,
    default: 'rgba(0, 0, 0, .2)',
    name: '背景色2',
    nameTip: '指定了该颜色后，会用背景色1与背景色2组成渐变色',
    filedType: 'color'
  },

  deg: {
    type: String,
    default: '0',
    name: '渐变色角度',
    filedType: 'string'
  },

  imgWidth: {
    type: String,
    default: '100%',
    name: '图片宽度',
    filedType: 'string'
  },

  imgHeight: {
    type: String,
    default: '100%',
    name: '图片高度',
    filedType: 'string'
  },

  align: {
    type: String,
    default: 'center',
    name: '图片对齐方式',
    filedType: 'select',
    options: [
      {
        name: '左对齐',
        value: 'left'
      },
      {
        name: '居中',
        value: 'center'
      },
      {
        name: '右对齐',
        value: 'right'
      }
    ]
  },

  objectFit: {
    type: String,
    default: 'none',
    name: '图片填充模式',
    filedType: 'select',
    options: [
      {
        name: '无',
        value: 'none'
      },
      {
        name: '填充',
        value: 'fill'
      },
      {
        name: '缩放',
        value: 'contain'
      },
      {
        name: '覆盖',
        value: 'cover'
      }
    ]
  },

  text: {
    type: String,
    default: '',
    name: '文本',
    filedType: 'string'
  },

  textColor: {
    type: String,
    default: '#333',
    name: '文本颜色',
    filedType: 'color'
  },

  textFontSize: {
    type: String,
    default: '#333',
    name: '文本字体大小',
    filedType: 'string'
  },

  isBold: {
    type: Boolean,
    default: false,
    name: '文本粗体显示',
    filedType: 'switch'
  },

  textTop: {
    type: String,
    default: '0',
    name: '文本上边距',
    filedType: 'string'
  },

  textLeft: {
    type: String,
    default: '0',
    name: '文本左边距',
    filedType: 'string'
  },
  funcStyle: {
    type: Function,
    default: '',
    name: '动画函数',
    nameTip: '::root.tw-imageanti > img',
    filedType: 'function'
  },
  useClick: {
    type: Boolean,
    default: false,
    name: '启用点击事件',
    filedType: 'switch'
  },
}
